package com.db.curd;


/**
 * 测试主类
 * 参考 MyDAO
 */
import java.util.List;

import com.microhifo.bean.*;
import com.mcm.bean.*;

public class MainTest2 {
  public static void main(String[] args){
	  BaseDAO dao = BaseDAO.getInstance();
	  dao.setConn_flag(1);
	  List<AddProvince> result = dao.getAll(AddProvince.class, "add_province");
	  System.out.println(result.size());
	  for(AddProvince data:result){
		  System.out.print(data.getProvince());
		  System.out.println();
	  }
	  
	  dao.setConn_flag(2);
	  List<V5esbCustomerShopStatistics> result2 = dao.getAll(V5esbCustomerShopStatistics.class, "V5ESB_Customer_Shop_Statistics");
	  System.out.println(result2.size());
	  for(V5esbCustomerShopStatistics data:result2){
		  System.out.print(data.getChannelCode());
		  System.out.println();
	  }
	  
	  
  }
}
